package com.vdf.sisconsolid.persistencemodule.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the family database table.
 * 
 */
@Entity
@Table(name="family")
public class Family implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(nullable=false)
	private Long id;

	private Long level;

	@Column(nullable=false, length=100)
	private String name;

	//bi-directional many-to-one association to Cell
	@OneToMany(mappedBy="family")
	private List<Cell> cells;

    public Family() {
    }

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getLevel() {
		return this.level;
	}

	public void setLevel(Long level) {
		this.level = level;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Cell> getCells() {
		return this.cells;
	}

	public void setCells(List<Cell> cells) {
		this.cells = cells;
	}
	
}